/*-----------------------------------------------------------------
*****************************************
With this dofile, we will replicate the tests of H2 in the paper entitled "Motivated reasoning and policy information: politicians are more resistant to debiasing interventions than the general public," written by Julian Christensen and Donald P. Moynihan and published in Behavioural Public Policy (doi:10.1017/bpp.2020.50)
*****************************************
-----------------------------------------------------------------*/

/*-----------------------------------------------------------------
We start by analyzing the politician data
-----------------------------------------------------------------*/

use "R:\Egen_forskning\Publicerede_papers\Christensen & Moynihan BPP - Motivated reasoning and policy information\Replication data and dofiles H2\ReplicationDataPoliticiansH2.dta", clear
set more off

*Test of H2: Effects of justification requirements on information search and information processing
reg BoxesTotal justification //Information search (Model 1 of Table 1)
reg TimeTotal justification //Information processing (Model 2 of Table 1)

/*-----------------------------------------------------------------
We move on to analyzing the general public data
-----------------------------------------------------------------*/

use "R:\Egen_forskning\Publicerede_papers\Christensen & Moynihan BPP - Motivated reasoning and policy information\Replication data and dofiles H2\ReplicationDataGeneralPublicH2.dta", clear
set more off

*Test of H2: Effects of justification requirements on information search and information processing
reg BoxesTotal justification //Information search (Model 3 of Table 1)
reg TimeTotal justification //Information processing (Model 4 of Table 1)

/*-----------------------------------------------------------------
We move on to analyzing differences between politicians and the general public (Supplementary Material S3)
-----------------------------------------------------------------*/

append using "R:\Egen_forskning\Publicerede_papers\Christensen & Moynihan BPP - Motivated reasoning and policy information\Replication data and dofiles H2\ReplicationDataPoliticiansH2.dta" //We combine the general public and politician datasets

*Table S3b: Differences Between Politicians' and Non-Politicians' Responses, H2 
gen justificationXpolitician = justification * politician
reg BoxesTotal justification politician justificationXpolitician //Information search (Model 1 of Table S3b)
reg TimeTotal justification politician justificationXpolitician //Information processing (Model 2 of Table S3b)
